package com.xx.controller;

import com.xx.domain.Product;
import com.xx.service.EditProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author : 徐闯 ssm_admin
 * @Date : 2021-05-13 17:05:06
 * @Description : edit product Controller
 **/
@Controller
public class EditProductController {
    @Autowired
    private EditProductService editProductService;
    @RequestMapping("/editProduct")
    @ResponseBody
    public int editProduct(Product product){
        //System.out.println(product);
        return editProductService.editProduct(product);
    }
}
